﻿using System;
using System.Data;
using System.Collections.Generic;
using System.Web.UI.HtmlControls;
using System.Web.UI;
using System.Web;
using System.Net;


using DevExpress.Web.ASPxHeadline;

using LMD.Lib.DataClass;
using LMD.Constant;
using LMD.Lib.Interface;
using LMD.Lib.Oracle;
using LMD.Lib.Controls;

/// <summary>
/// Summary description for RAdminManager
/// </summary>
public static class RAdminManager
{
    public static String BuildEditor_EmailSender(String sxRecentEmail)
    {
        String sxOutput = String.Empty;
        String sxTxtRecentEmail = CustomControls.Create_TextBox(KRAdmin.EMAILSENDER, KControl.INPUT_ID, sxRecentEmail, true, TextboxType.ReadOnly);

        sxOutput += CustomControls.BuildFieldSet_PairedLabel("Recent Email", sxTxtRecentEmail);
        sxOutput += CustomControls.BuildEditor_LabelAndText(KRAdmin.NEWEMAIL, KControl.INPUT_ID, "New Email", String.Empty, TextboxType.Email);
        sxOutput +=
            "<dt>&nbsp;</dt><dd><input type=\"button\" id=\"btnChange\" class=\"btn\"" +
            "style=\"margin-left: 5px; margin-right: 5px; width:100px;\"" +
                "onclick=\"Change();\" value=\"CHANGE\" /> " +
            "<div id=\"load\" style=\"float: left; margin-left: 5px; margin-right: 5px;\"></div></dd>";
        return sxOutput;
    }
}
